package com.yjd.bi.borrow.dao.impl;

import java.util.Map;

import org.springframework.stereotype.Component;
import com.yjd.comm.base.dao.impl.BaseDaoImpl;
import com.yjd.bi.borrow.model.ProfitFormModel;
import com.yjd.bi.borrow.dao.IProfitFormDao;

/**
 * <b>description</b>：投资人还款报表数据访问层 <br>
 * <b>time</b>：2016-08-18 09:48:33 <br>
 * <b>author</b>： renbangjie renbangjie@126.com
 */
@Component("profitFormDao")
public class ProfitFormDaoImpl extends BaseDaoImpl implements IProfitFormDao {

	private static final String SQLMAPNAMESPACE = ProfitFormModel.class
			.getName();
	private static final String PKNAME = "id";

	@Override
	public String getPrimaryKeyName() {
		return PKNAME;
	}

	@Override
	public String getSqlmapNamespace() {
		return SQLMAPNAMESPACE;
	}

	@Override
	public Double getTotalRaiseAmount(Map<String, Object> paramMap) {
		return (Double) this.getSqlMap(false).queryForObject(
				getStatement("getTotalRaiseAmount"), paramMap);
	}

}
